package com.company.book_store.pojo;

import java.sql.Date;

public class Bookinfo {
    private String username;
    private String book_name;
    private Date date_borrow;
    private Date date_return;
    private int book_id;
    private int id;


//    public Bookinfo(String username, String book_name, Date date_borrow, Date date_return, int book_id, int id) {
//        this.username = username;
//        this.book_name = book_name;
//        this.date_borrow = date_borrow;
//        this.date_return = date_return;
//        this.book_id = book_id;
//        this.id = id;
//    }


    public Bookinfo(String username, String book_name, Date date_borrow, Date date_return, int book_id, int id) {
        this.username = username;
        this.book_name = book_name;
        this.date_borrow = date_borrow;
        this.date_return = date_return;
        this.book_id = book_id;
        this.id = id;
    }

    public Bookinfo(String username, String book_name, Date date_borrow, Date date_return, int book_id) {
        this.username = username;
        this.book_name = book_name;
        this.date_borrow = date_borrow;
        this.date_return = date_return;
        this.book_id = book_id;
    }

    public Bookinfo(String username, String book_name, Date date_borrow, Date date_return) {
        this.username = username;
        this.book_name = book_name;
        this.date_borrow = date_borrow;
        this.date_return = date_return;
    }

    public Bookinfo() {
    }

    public String getUsername() {
        return username;
    }

    public String getBook_name() {
        return book_name;
    }

    public Date getDate_borrow() {
        return date_borrow;
    }

    public Date getDate_return() {
        return date_return;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public void setDate_borrow(Date date_borrow) {
        this.date_borrow = date_borrow;
    }

    public void setDate_return(Date date_return) {
        this.date_return = date_return;
    }
    public void setBook_id(int book_id) {
        this.book_id = book_id;
    }

    public int getBook_id() {
        return book_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Bookinfo{" +
                "username='" + username + '\'' +
                ", book_name='" + book_name + '\'' +
                ", date_borrow=" + date_borrow +
                ", date_return=" + date_return +
                ", book_id=" + book_id +
                ", id=" + id +
                '}';
    }
}
